<?php
	$id=_g('i');
	$db = new CPDO();
	$sql = 'select * from `cc_code` where id = ' . $id;
	$codes = $db->get($sql);
	//dbg($codes);
?>

<div class="entry-content">
	  <div class="entry-title">
		<h1><?=$codes->title?> <a href="<?=BASEURL?>?a=add&i=<?=$codes->id?>">编辑</a></h1>
	  </div>
	  <div class="entry">
		<h2> <?=$codes->desc?></h2>
	  </div>
	</div>
	<?=htmlspecialchars_decode($codes->content)?>
